<template>
	<view class="">
		<view class="grouplist" v-for="(item,index) in groupList" @tap="clustering(item)">
			<view class="grouplist_left">
				还差<text>{{item.last_num}}</text>人成团
			</view>
			<view class="grouplist_right">
				<!-- <view class="grouplist_time">
					<uni-countdowno :show-day="false" :hour="0" :minute="0" :second="item.countdown"></uni-countdowno>
				</view> -->
				<view class="grouplist_btn">
					一起拼
				</view>
			</view>

		</view>
	</view>
</template>

<script>
	import uniCountdowno from '@/components/uni-countdown/uni-countdown1.vue';
	export default {
		components: {
			uniCountdowno
		},
		props: ['groupList'],
		data() {
			return {

			}
		},
		onLoad() {
			// console.log(this.groupList)
		},
		methods: {
			clustering(item) {
				this.$emit('clustering', item)
			}
		}
	}
</script>

<style lang="less" scoped>
	.grouplist {
		width: 100%;
		height: 116upx;
		background-color: #FFFFFF;
		border-radius: 10upx;
		margin: auto;
		padding: 0 25upx;
		box-sizing: border-box;
		display: flex;
		align-items: center;
		justify-content: space-between;
		border-bottom: 1px solid #f0f0f0;

		&:last-child {
			border: none;
		}

		.grouplist_member_header {
			height: 76upx;

			image {
				width: 76upx;
				height: 76upx;
				border-radius: 50%;
				margin-right: 10upx;
			}
		}

		.grouplist_residue {
			display: flex;
			align-items: center;

			.grouplist_residue_l_t {
				font-size: 24upx;
				color: #999999;
			}

			.grouplist_residue_l_b {
				text-align: center;
				font-size: 24upx;
				color: #333333;
				margin-top: 6upx;
			}

			.grouplist_residue_r {
				width: 148upx;
				height: 52upx;
				background: linear-gradient(to right, #f73f2f 0%, #FF2842 100%);
				border-radius: 26upx;
				font-size: 28upx;
				color: #FFFFFF;
				text-align: center;
				line-height: 52upx;
				box-shadow: 0 0 6upx 0 #FF2842;
				margin-left: 20upx;
			}
		}

		.grouplist_left {
			font-size: 28upx;
			color: #333;

			text {
				color: red;
				padding: 0 10upx;
			}
		}

		.grouplist_right {
			display: flex;
			align-items: center;
		}

		.grouplist_time {
			transform: scale(1.1);
		}

		.grouplist_btn {
			width: 148upx;
			height: 52upx;
			background: #FF4D53;
			border-radius: 26upx;
			font-size: 28upx;
			color: #FFFFFF;
			text-align: center;
			line-height: 52upx;
			margin-left: 20upx;
		}
	}
</style>
